package com.caishi.lkx.user.model.re;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zzw.common.entity.impl.BaseIntEntity;
import com.caishi.lkx.user.ienum.status.UserGroupStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;

/**
* @Param:
* @return
* @Author: huangpeng
* @Date: 2022/2/9 16:06
* @Description: 用户机构关联表
*/

@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("cu_user_group_re")
public class UserGroupReModel extends BaseIntEntity<UserGroupReModel> {
    @Schema(title = "机构id")
    private Long groupId;
    @Schema(title = "用户id")
    private String userId;
    @Schema(title = "用户过期时间")
    private LocalDate expireTime;
    @Schema(title = "用户机构绑定")
    private UserGroupStatus status;

    @Schema(title = "用户名")
    @TableField(exist = false)
    private String userName;
    @Schema(title = "昵称")
    @TableField(exist = false)
    private String name;
    @Schema(title = "头像")
    @TableField(exist = false)
    private String header;
    @Schema(title = "昵称")
    @TableField(exist = false)
    private String groupName;
}
